let path = require('path')
let serverConfig = require('./server.js')
let webpack = require('webpack')
module.exports = {
    mode:'production',
    entry:{
        react:['react','react-dom']
    },
    output:{
        filename:'[name].dll.js',
        path: path.resolve(__dirname,serverConfig.path,'dll'),
        library:'[name]_dll',
    },
    plugins:[
        new webpack.DllPlugin({
            name : '[name]_dll',
            path : path.resolve(__dirname,serverConfig.path,'dll','[name].manifest.json')
        })
    ]
}